﻿/* * *******************************************************************************************
*  This file is part of the Oracle Service Cloud Accelerator Reference Integration set published
 *  by Oracle Service Cloud under the Universal Permissive License (UPL), Version 1.0
 *  included in the original distribution.
 *  Copyright (c) 2014, 2015, 2016, Oracle and/or its affiliates. All rights reserved.
 ***********************************************************************************************
 *  Accelerator Package: OSvC + OFSC Reference Integration
 *  link: http://www-content.oracle.com/technetwork/indexes/samplecode/accelerator-osvc-2525361.html
 *  OSvC release: 15.2 (Feb 2015)
 *  OFSC release: 15.2 (Feb 2015)
 *  reference: 150622-000130
 *  date: Thu Sep  3 23:14:03 PDT 2015

 *  revision: rnw-15-11-fixes-release-03
*  SHA1: $Id: 292d02dde6c3a4a9c0843c869f8a5e378a60944a $
* *********************************************************************************************
*  File: toa_capacity_interface.cs
* ****************************************************************************************** */

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.17929
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------



// 
// This source code was auto-generated by wsdl, Version=4.0.30319.17929.
// 


/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name = "CapacityBinding", Namespace = "urn:toa:capacity")]
public partial class toa_capacity_interface : System.Web.Services.Protocols.SoapHttpClientProtocol
{

    private System.Threading.SendOrPostCallback get_capacityOperationCompleted;

    private System.Threading.SendOrPostCallback get_quota_dataOperationCompleted;

    private System.Threading.SendOrPostCallback set_quotaOperationCompleted;

    private System.Threading.SendOrPostCallback set_quota_close_timeOperationCompleted;

    private System.Threading.SendOrPostCallback get_quota_close_timeOperationCompleted;

    /// <remarks/>
    public toa_capacity_interface()
    {
        this.Url = "https://demo.etadirect.com/soap/capacity/";
    }

    public toa_capacity_interface(string endPointUrl)
    {
        this.Url = endPointUrl;
    }

    /// <remarks/>
    public event get_capacityCompletedEventHandler get_capacityCompleted;

    /// <remarks/>
    public event get_quota_dataCompletedEventHandler get_quota_dataCompleted;

    /// <remarks/>
    public event set_quotaCompletedEventHandler set_quotaCompleted;

    /// <remarks/>
    public event set_quota_close_timeCompletedEventHandler set_quota_close_timeCompleted;

    /// <remarks/>
    public event get_quota_close_timeCompletedEventHandler get_quota_close_timeCompleted;

    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("toa_capacity_interface/get_capacity", RequestNamespace = "urn:toa:capacity", ResponseElementName = "get_capacity_response", ResponseNamespace = "urn:toa:capacity", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public void get_capacity(
                [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] user_element user,
                [System.Xml.Serialization.XmlElementAttribute("date", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "date")] System.DateTime[] date,
                [System.Xml.Serialization.XmlElementAttribute("location", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] location,
                [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool calculate_duration,
                [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool calculate_durationSpecified,
                  [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool calculate_travel_time,
                  [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool calculate_travel_timeSpecified,
                    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool calculate_work_skill,
                    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool calculate_work_skillSpecified,
                      [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool return_time_slot_info,
                      [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool return_time_slot_infoSpecified,
                        [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool determine_location_by_work_zone,
                        [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool determine_location_by_work_zoneSpecified,
                          [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool dont_aggregate_results,
                          [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool dont_aggregate_resultsSpecified,
                            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int min_time_to_end_of_time_slot,
                            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool min_time_to_end_of_time_slotSpecified,
                              [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int default_duration,
                              [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool default_durationSpecified,
                                [System.Xml.Serialization.XmlElementAttribute("time_slot", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] time_slot,
                                [System.Xml.Serialization.XmlElementAttribute("work_skill", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] work_skill,
                                [System.Xml.Serialization.XmlElementAttribute("activity_field", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] activity_field_element[] activity_field,
                                [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out long activity_duration,
                                [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] out bool activity_durationSpecified,
                                  [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out long activity_travel_time,
                                  [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] out bool activity_travel_timeSpecified,
                                    [System.Xml.Serialization.XmlElementAttribute("capacity", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out capacity_element[] capacity,
                                    [System.Xml.Serialization.XmlElementAttribute("time_slot_info", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out time_slot_info_element[] time_slot_info)
    {
        object[] results = this.Invoke("get_capacity", new object[] {
                    user,
                    date,
                    location,
                    calculate_duration,
                    calculate_durationSpecified,
                    calculate_travel_time,
                    calculate_travel_timeSpecified,
                    calculate_work_skill,
                    calculate_work_skillSpecified,
                    return_time_slot_info,
                    return_time_slot_infoSpecified,
                    determine_location_by_work_zone,
                    determine_location_by_work_zoneSpecified,
                    dont_aggregate_results,
                    dont_aggregate_resultsSpecified,
                    min_time_to_end_of_time_slot,
                    min_time_to_end_of_time_slotSpecified,
                    default_duration,
                    default_durationSpecified,
                    time_slot,
                    work_skill,
                    activity_field});
        activity_duration = ((long)(results[0]));
        activity_durationSpecified = ((bool)(results[1]));
        activity_travel_time = ((long)(results[2]));
        activity_travel_timeSpecified = ((bool)(results[3]));
        capacity = ((capacity_element[])(results[4]));
        time_slot_info = ((time_slot_info_element[])(results[5]));
    }

    /// <remarks/>
    public System.IAsyncResult Beginget_capacity(
                user_element user,
                System.DateTime[] date,
                string[] location,
                bool calculate_duration,
                bool calculate_durationSpecified,
                bool calculate_travel_time,
                bool calculate_travel_timeSpecified,
                bool calculate_work_skill,
                bool calculate_work_skillSpecified,
                bool return_time_slot_info,
                bool return_time_slot_infoSpecified,
                bool determine_location_by_work_zone,
                bool determine_location_by_work_zoneSpecified,
                bool dont_aggregate_results,
                bool dont_aggregate_resultsSpecified,
                int min_time_to_end_of_time_slot,
                bool min_time_to_end_of_time_slotSpecified,
                int default_duration,
                bool default_durationSpecified,
                string[] time_slot,
                string[] work_skill,
                activity_field_element[] activity_field,
                System.AsyncCallback callback,
                object asyncState)
    {
        return this.BeginInvoke("get_capacity", new object[] {
                    user,
                    date,
                    location,
                    calculate_duration,
                    calculate_durationSpecified,
                    calculate_travel_time,
                    calculate_travel_timeSpecified,
                    calculate_work_skill,
                    calculate_work_skillSpecified,
                    return_time_slot_info,
                    return_time_slot_infoSpecified,
                    determine_location_by_work_zone,
                    determine_location_by_work_zoneSpecified,
                    dont_aggregate_results,
                    dont_aggregate_resultsSpecified,
                    min_time_to_end_of_time_slot,
                    min_time_to_end_of_time_slotSpecified,
                    default_duration,
                    default_durationSpecified,
                    time_slot,
                    work_skill,
                    activity_field}, callback, asyncState);
    }

    /// <remarks/>
    public void Endget_capacity(System.IAsyncResult asyncResult, out long activity_duration, out bool activity_durationSpecified, out long activity_travel_time, out bool activity_travel_timeSpecified, out capacity_element[] capacity, out time_slot_info_element[] time_slot_info)
    {
        object[] results = this.EndInvoke(asyncResult);
        activity_duration = ((long)(results[0]));
        activity_durationSpecified = ((bool)(results[1]));
        activity_travel_time = ((long)(results[2]));
        activity_travel_timeSpecified = ((bool)(results[3]));
        capacity = ((capacity_element[])(results[4]));
        time_slot_info = ((time_slot_info_element[])(results[5]));
    }

    /// <remarks/>
    public void get_capacityAsync(
                user_element user,
                System.DateTime[] date,
                string[] location,
                bool calculate_duration,
                bool calculate_durationSpecified,
                bool calculate_travel_time,
                bool calculate_travel_timeSpecified,
                bool calculate_work_skill,
                bool calculate_work_skillSpecified,
                bool return_time_slot_info,
                bool return_time_slot_infoSpecified,
                bool determine_location_by_work_zone,
                bool determine_location_by_work_zoneSpecified,
                bool dont_aggregate_results,
                bool dont_aggregate_resultsSpecified,
                int min_time_to_end_of_time_slot,
                bool min_time_to_end_of_time_slotSpecified,
                int default_duration,
                bool default_durationSpecified,
                string[] time_slot,
                string[] work_skill,
                activity_field_element[] activity_field)
    {
        this.get_capacityAsync(user, date, location, calculate_duration, calculate_durationSpecified, calculate_travel_time, calculate_travel_timeSpecified, calculate_work_skill, calculate_work_skillSpecified, return_time_slot_info, return_time_slot_infoSpecified, determine_location_by_work_zone, determine_location_by_work_zoneSpecified, dont_aggregate_results, dont_aggregate_resultsSpecified, min_time_to_end_of_time_slot, min_time_to_end_of_time_slotSpecified, default_duration, default_durationSpecified, time_slot, work_skill, activity_field, null);
    }

    /// <remarks/>
    public void get_capacityAsync(
                user_element user,
                System.DateTime[] date,
                string[] location,
                bool calculate_duration,
                bool calculate_durationSpecified,
                bool calculate_travel_time,
                bool calculate_travel_timeSpecified,
                bool calculate_work_skill,
                bool calculate_work_skillSpecified,
                bool return_time_slot_info,
                bool return_time_slot_infoSpecified,
                bool determine_location_by_work_zone,
                bool determine_location_by_work_zoneSpecified,
                bool dont_aggregate_results,
                bool dont_aggregate_resultsSpecified,
                int min_time_to_end_of_time_slot,
                bool min_time_to_end_of_time_slotSpecified,
                int default_duration,
                bool default_durationSpecified,
                string[] time_slot,
                string[] work_skill,
                activity_field_element[] activity_field,
                object userState)
    {
        if ((this.get_capacityOperationCompleted == null))
        {
            this.get_capacityOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_capacityOperationCompleted);
        }
        this.InvokeAsync("get_capacity", new object[] {
                    user,
                    date,
                    location,
                    calculate_duration,
                    calculate_durationSpecified,
                    calculate_travel_time,
                    calculate_travel_timeSpecified,
                    calculate_work_skill,
                    calculate_work_skillSpecified,
                    return_time_slot_info,
                    return_time_slot_infoSpecified,
                    determine_location_by_work_zone,
                    determine_location_by_work_zoneSpecified,
                    dont_aggregate_results,
                    dont_aggregate_resultsSpecified,
                    min_time_to_end_of_time_slot,
                    min_time_to_end_of_time_slotSpecified,
                    default_duration,
                    default_durationSpecified,
                    time_slot,
                    work_skill,
                    activity_field}, this.get_capacityOperationCompleted, userState);
    }

    private void Onget_capacityOperationCompleted(object arg)
    {
        if ((this.get_capacityCompleted != null))
        {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.get_capacityCompleted(this, new get_capacityCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("toa_capacity_interface/get_quota_data", RequestNamespace = "urn:toa:capacity", ResponseElementName = "get_quota_data_response", ResponseNamespace = "urn:toa:capacity", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    [return: System.Xml.Serialization.XmlElementAttribute("bucket", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_bucket_element[] get_quota_data([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] user_element user, [System.Xml.Serialization.XmlElementAttribute("date", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "date")] System.DateTime[] date, [System.Xml.Serialization.XmlElementAttribute("resource_id", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] resource_id, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool aggregate_results, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool aggregate_resultsSpecified, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] bool calculate_totals, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool calculate_totalsSpecified, [System.Xml.Serialization.XmlElementAttribute("time_slot", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] time_slot, [System.Xml.Serialization.XmlElementAttribute("category", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] category, [System.Xml.Serialization.XmlElementAttribute("day_quota_field", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] day_quota_field, [System.Xml.Serialization.XmlElementAttribute("time_slot_quota_field", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] time_slot_quota_field, [System.Xml.Serialization.XmlElementAttribute("category_quota_field", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] category_quota_field, [System.Xml.Serialization.XmlElementAttribute("work_zone_quota_field", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] work_zone_quota_field)
    {
        object[] results = this.Invoke("get_quota_data", new object[] {
                    user,
                    date,
                    resource_id,
                    aggregate_results,
                    aggregate_resultsSpecified,
                    calculate_totals,
                    calculate_totalsSpecified,
                    time_slot,
                    category,
                    day_quota_field,
                    time_slot_quota_field,
                    category_quota_field,
                    work_zone_quota_field});
        return ((get_quota_data_bucket_element[])(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult Beginget_quota_data(user_element user, System.DateTime[] date, string[] resource_id, bool aggregate_results, bool aggregate_resultsSpecified, bool calculate_totals, bool calculate_totalsSpecified, string[] time_slot, string[] category, string[] day_quota_field, string[] time_slot_quota_field, string[] category_quota_field, string[] work_zone_quota_field, System.AsyncCallback callback, object asyncState)
    {
        return this.BeginInvoke("get_quota_data", new object[] {
                    user,
                    date,
                    resource_id,
                    aggregate_results,
                    aggregate_resultsSpecified,
                    calculate_totals,
                    calculate_totalsSpecified,
                    time_slot,
                    category,
                    day_quota_field,
                    time_slot_quota_field,
                    category_quota_field,
                    work_zone_quota_field}, callback, asyncState);
    }

    /// <remarks/>
    public get_quota_data_bucket_element[] Endget_quota_data(System.IAsyncResult asyncResult)
    {
        object[] results = this.EndInvoke(asyncResult);
        return ((get_quota_data_bucket_element[])(results[0]));
    }

    /// <remarks/>
    public void get_quota_dataAsync(user_element user, System.DateTime[] date, string[] resource_id, bool aggregate_results, bool aggregate_resultsSpecified, bool calculate_totals, bool calculate_totalsSpecified, string[] time_slot, string[] category, string[] day_quota_field, string[] time_slot_quota_field, string[] category_quota_field, string[] work_zone_quota_field)
    {
        this.get_quota_dataAsync(user, date, resource_id, aggregate_results, aggregate_resultsSpecified, calculate_totals, calculate_totalsSpecified, time_slot, category, day_quota_field, time_slot_quota_field, category_quota_field, work_zone_quota_field, null);
    }

    /// <remarks/>
    public void get_quota_dataAsync(user_element user, System.DateTime[] date, string[] resource_id, bool aggregate_results, bool aggregate_resultsSpecified, bool calculate_totals, bool calculate_totalsSpecified, string[] time_slot, string[] category, string[] day_quota_field, string[] time_slot_quota_field, string[] category_quota_field, string[] work_zone_quota_field, object userState)
    {
        if ((this.get_quota_dataOperationCompleted == null))
        {
            this.get_quota_dataOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_quota_dataOperationCompleted);
        }
        this.InvokeAsync("get_quota_data", new object[] {
                    user,
                    date,
                    resource_id,
                    aggregate_results,
                    aggregate_resultsSpecified,
                    calculate_totals,
                    calculate_totalsSpecified,
                    time_slot,
                    category,
                    day_quota_field,
                    time_slot_quota_field,
                    category_quota_field,
                    work_zone_quota_field}, this.get_quota_dataOperationCompleted, userState);
    }

    private void Onget_quota_dataOperationCompleted(object arg)
    {
        if ((this.get_quota_dataCompleted != null))
        {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.get_quota_dataCompleted(this, new get_quota_dataCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("toa_capacity_interface/set_quota", RequestNamespace = "urn:toa:capacity", ResponseElementName = "set_quota_response", ResponseNamespace = "urn:toa:capacity", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    [return: System.Xml.Serialization.XmlElementAttribute("result", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_result_element[] set_quota([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] user_element user, [System.Xml.Serialization.XmlElementAttribute("bucket", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] set_quota_bucket_element[] bucket)
    {
        object[] results = this.Invoke("set_quota", new object[] {
                    user,
                    bucket});
        return ((set_quota_result_element[])(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult Beginset_quota(user_element user, set_quota_bucket_element[] bucket, System.AsyncCallback callback, object asyncState)
    {
        return this.BeginInvoke("set_quota", new object[] {
                    user,
                    bucket}, callback, asyncState);
    }

    /// <remarks/>
    public set_quota_result_element[] Endset_quota(System.IAsyncResult asyncResult)
    {
        object[] results = this.EndInvoke(asyncResult);
        return ((set_quota_result_element[])(results[0]));
    }

    /// <remarks/>
    public void set_quotaAsync(user_element user, set_quota_bucket_element[] bucket)
    {
        this.set_quotaAsync(user, bucket, null);
    }

    /// <remarks/>
    public void set_quotaAsync(user_element user, set_quota_bucket_element[] bucket, object userState)
    {
        if ((this.set_quotaOperationCompleted == null))
        {
            this.set_quotaOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_quotaOperationCompleted);
        }
        this.InvokeAsync("set_quota", new object[] {
                    user,
                    bucket}, this.set_quotaOperationCompleted, userState);
    }

    private void Onset_quotaOperationCompleted(object arg)
    {
        if ((this.set_quotaCompleted != null))
        {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.set_quotaCompleted(this, new set_quotaCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("toa_capacity_interface/set_quota_close_time", RequestNamespace = "urn:toa:capacity", ResponseElementName = "set_quota_close_time_response", ResponseNamespace = "urn:toa:capacity", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    [return: System.Xml.Serialization.XmlElementAttribute("result", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_close_time_result[] set_quota_close_time([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] user_element user, [System.Xml.Serialization.XmlElementAttribute("close_schedule", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] quota_close_time_schedule[] close_schedule)
    {
        object[] results = this.Invoke("set_quota_close_time", new object[] {
                    user,
                    close_schedule});
        return ((set_quota_close_time_result[])(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult Beginset_quota_close_time(user_element user, quota_close_time_schedule[] close_schedule, System.AsyncCallback callback, object asyncState)
    {
        return this.BeginInvoke("set_quota_close_time", new object[] {
                    user,
                    close_schedule}, callback, asyncState);
    }

    /// <remarks/>
    public set_quota_close_time_result[] Endset_quota_close_time(System.IAsyncResult asyncResult)
    {
        object[] results = this.EndInvoke(asyncResult);
        return ((set_quota_close_time_result[])(results[0]));
    }

    /// <remarks/>
    public void set_quota_close_timeAsync(user_element user, quota_close_time_schedule[] close_schedule)
    {
        this.set_quota_close_timeAsync(user, close_schedule, null);
    }

    /// <remarks/>
    public void set_quota_close_timeAsync(user_element user, quota_close_time_schedule[] close_schedule, object userState)
    {
        if ((this.set_quota_close_timeOperationCompleted == null))
        {
            this.set_quota_close_timeOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_quota_close_timeOperationCompleted);
        }
        this.InvokeAsync("set_quota_close_time", new object[] {
                    user,
                    close_schedule}, this.set_quota_close_timeOperationCompleted, userState);
    }

    private void Onset_quota_close_timeOperationCompleted(object arg)
    {
        if ((this.set_quota_close_timeCompleted != null))
        {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.set_quota_close_timeCompleted(this, new set_quota_close_timeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }

    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("toa_capacity_interface/get_quota_close_time", RequestNamespace = "urn:toa:capacity", ResponseElementName = "get_quota_close_time_response", ResponseNamespace = "urn:toa:capacity", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    [return: System.Xml.Serialization.XmlElementAttribute("close_schedule", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public quota_close_time_schedule[] get_quota_close_time([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] user_element user, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string bucket_id, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] byte day_offset, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool day_offsetSpecified, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string time_slot, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string category, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string work_zone)
    {
        object[] results = this.Invoke("get_quota_close_time", new object[] {
                    user,
                    bucket_id,
                    day_offset,
                    day_offsetSpecified,
                    time_slot,
                    category,
                    work_zone});
        return ((quota_close_time_schedule[])(results[0]));
    }

    /// <remarks/>
    public System.IAsyncResult Beginget_quota_close_time(user_element user, string bucket_id, byte day_offset, bool day_offsetSpecified, string time_slot, string category, string work_zone, System.AsyncCallback callback, object asyncState)
    {
        return this.BeginInvoke("get_quota_close_time", new object[] {
                    user,
                    bucket_id,
                    day_offset,
                    day_offsetSpecified,
                    time_slot,
                    category,
                    work_zone}, callback, asyncState);
    }

    /// <remarks/>
    public quota_close_time_schedule[] Endget_quota_close_time(System.IAsyncResult asyncResult)
    {
        object[] results = this.EndInvoke(asyncResult);
        return ((quota_close_time_schedule[])(results[0]));
    }

    /// <remarks/>
    public void get_quota_close_timeAsync(user_element user, string bucket_id, byte day_offset, bool day_offsetSpecified, string time_slot, string category, string work_zone)
    {
        this.get_quota_close_timeAsync(user, bucket_id, day_offset, day_offsetSpecified, time_slot, category, work_zone, null);
    }

    /// <remarks/>
    public void get_quota_close_timeAsync(user_element user, string bucket_id, byte day_offset, bool day_offsetSpecified, string time_slot, string category, string work_zone, object userState)
    {
        if ((this.get_quota_close_timeOperationCompleted == null))
        {
            this.get_quota_close_timeOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_quota_close_timeOperationCompleted);
        }
        this.InvokeAsync("get_quota_close_time", new object[] {
                    user,
                    bucket_id,
                    day_offset,
                    day_offsetSpecified,
                    time_slot,
                    category,
                    work_zone}, this.get_quota_close_timeOperationCompleted, userState);
    }

    private void Onget_quota_close_timeOperationCompleted(object arg)
    {
        if ((this.get_quota_close_timeCompleted != null))
        {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.get_quota_close_timeCompleted(this, new get_quota_close_timeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }

    /// <remarks/>
    public new void CancelAsync(object userState)
    {
        base.CancelAsync(userState);
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class user_element
{

    private string nowField;

    private string loginField;

    private string companyField;

    private string auth_stringField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string now
    {
        get
        {
            return this.nowField;
        }
        set
        {
            this.nowField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string login
    {
        get
        {
            return this.loginField;
        }
        set
        {
            this.loginField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string company
    {
        get
        {
            return this.companyField;
        }
        set
        {
            this.companyField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string auth_string
    {
        get
        {
            return this.auth_stringField;
        }
        set
        {
            this.auth_stringField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_close_time_result
{

    private string bucket_idField;

    private byte day_offsetField;

    private bool day_offsetFieldSpecified;

    private string time_slotField;

    private string categoryField;

    private string work_zoneField;

    private int result_codeField;

    private string error_msgField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string bucket_id
    {
        get
        {
            return this.bucket_idField;
        }
        set
        {
            this.bucket_idField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte day_offset
    {
        get
        {
            return this.day_offsetField;
        }
        set
        {
            this.day_offsetField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool day_offsetSpecified
    {
        get
        {
            return this.day_offsetFieldSpecified;
        }
        set
        {
            this.day_offsetFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string category
    {
        get
        {
            return this.categoryField;
        }
        set
        {
            this.categoryField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string work_zone
    {
        get
        {
            return this.work_zoneField;
        }
        set
        {
            this.work_zoneField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int result_code
    {
        get
        {
            return this.result_codeField;
        }
        set
        {
            this.result_codeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string error_msg
    {
        get
        {
            return this.error_msgField;
        }
        set
        {
            this.error_msgField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class quota_close_time_schedule
{

    private string bucket_idField;

    private byte day_offsetField;

    private bool day_offsetFieldSpecified;

    private string time_slotField;

    private string categoryField;

    private string work_zoneField;

    private System.DateTime close_timeField;

    private bool close_timeFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string bucket_id
    {
        get
        {
            return this.bucket_idField;
        }
        set
        {
            this.bucket_idField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte day_offset
    {
        get
        {
            return this.day_offsetField;
        }
        set
        {
            this.day_offsetField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool day_offsetSpecified
    {
        get
        {
            return this.day_offsetFieldSpecified;
        }
        set
        {
            this.day_offsetFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string category
    {
        get
        {
            return this.categoryField;
        }
        set
        {
            this.categoryField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string work_zone
    {
        get
        {
            return this.work_zoneField;
        }
        set
        {
            this.work_zoneField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "time")]
    public System.DateTime close_time
    {
        get
        {
            return this.close_timeField;
        }
        set
        {
            this.close_timeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool close_timeSpecified
    {
        get
        {
            return this.close_timeFieldSpecified;
        }
        set
        {
            this.close_timeFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_result_element
{

    private string bucket_idField;

    private string dateField;

    private string time_slotField;

    private string categoryField;

    private int result_codeField;

    private string error_msgField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string bucket_id
    {
        get
        {
            return this.bucket_idField;
        }
        set
        {
            this.bucket_idField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string date
    {
        get
        {
            return this.dateField;
        }
        set
        {
            this.dateField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string category
    {
        get
        {
            return this.categoryField;
        }
        set
        {
            this.categoryField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int result_code
    {
        get
        {
            return this.result_codeField;
        }
        set
        {
            this.result_codeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string error_msg
    {
        get
        {
            return this.error_msgField;
        }
        set
        {
            this.error_msgField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_work_zone_element
{

    private string labelField;

    private byte statusField;

    private bool statusFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_category_element
{

    private string labelField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private ushort stop_booking_atField;

    private bool stop_booking_atFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private set_quota_work_zone_element[] work_zoneField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public ushort stop_booking_at
    {
        get
        {
            return this.stop_booking_atField;
        }
        set
        {
            this.stop_booking_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool stop_booking_atSpecified
    {
        get
        {
            return this.stop_booking_atFieldSpecified;
        }
        set
        {
            this.stop_booking_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("work_zone", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_work_zone_element[] work_zone
    {
        get
        {
            return this.work_zoneField;
        }
        set
        {
            this.work_zoneField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_time_slot_element
{

    private string labelField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private ushort stop_booking_atField;

    private bool stop_booking_atFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private set_quota_category_element[] categoryField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public ushort stop_booking_at
    {
        get
        {
            return this.stop_booking_atField;
        }
        set
        {
            this.stop_booking_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool stop_booking_atSpecified
    {
        get
        {
            return this.stop_booking_atFieldSpecified;
        }
        set
        {
            this.stop_booking_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("category", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_category_element[] category
    {
        get
        {
            return this.categoryField;
        }
        set
        {
            this.categoryField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_day_element
{

    private System.DateTime dateField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private set_quota_time_slot_element[] time_slotField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "date")]
    public System.DateTime date
    {
        get
        {
            return this.dateField;
        }
        set
        {
            this.dateField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("time_slot", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_time_slot_element[] time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class set_quota_bucket_element
{

    private string bucket_idField;

    private set_quota_day_element[] dayField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string bucket_id
    {
        get
        {
            return this.bucket_idField;
        }
        set
        {
            this.bucket_idField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("day", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public set_quota_day_element[] day
    {
        get
        {
            return this.dayField;
        }
        set
        {
            this.dayField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_day_total_element
{

    private int quotaField;

    private bool quotaFieldSpecified;

    private int max_availableField;

    private bool max_availableFieldSpecified;

    private int other_activitiesField;

    private bool other_activitiesFieldSpecified;

    private int usedField;

    private bool usedFieldSpecified;

    private int countField;

    private bool countFieldSpecified;

    private int planField;

    private bool planFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int max_available
    {
        get
        {
            return this.max_availableField;
        }
        set
        {
            this.max_availableField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool max_availableSpecified
    {
        get
        {
            return this.max_availableFieldSpecified;
        }
        set
        {
            this.max_availableFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int other_activities
    {
        get
        {
            return this.other_activitiesField;
        }
        set
        {
            this.other_activitiesField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool other_activitiesSpecified
    {
        get
        {
            return this.other_activitiesFieldSpecified;
        }
        set
        {
            this.other_activitiesFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int used
    {
        get
        {
            return this.usedField;
        }
        set
        {
            this.usedField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool usedSpecified
    {
        get
        {
            return this.usedFieldSpecified;
        }
        set
        {
            this.usedFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int count
    {
        get
        {
            return this.countField;
        }
        set
        {
            this.countField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool countSpecified
    {
        get
        {
            return this.countFieldSpecified;
        }
        set
        {
            this.countFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int plan
    {
        get
        {
            return this.planField;
        }
        set
        {
            this.planField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool planSpecified
    {
        get
        {
            return this.planFieldSpecified;
        }
        set
        {
            this.planFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_time_slot_total_element
{

    private int quotaField;

    private bool quotaFieldSpecified;

    private int max_availableField;

    private bool max_availableFieldSpecified;

    private int usedField;

    private bool usedFieldSpecified;

    private int countField;

    private bool countFieldSpecified;

    private int planField;

    private bool planFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int max_available
    {
        get
        {
            return this.max_availableField;
        }
        set
        {
            this.max_availableField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool max_availableSpecified
    {
        get
        {
            return this.max_availableFieldSpecified;
        }
        set
        {
            this.max_availableFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int used
    {
        get
        {
            return this.usedField;
        }
        set
        {
            this.usedField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool usedSpecified
    {
        get
        {
            return this.usedFieldSpecified;
        }
        set
        {
            this.usedFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int count
    {
        get
        {
            return this.countField;
        }
        set
        {
            this.countField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool countSpecified
    {
        get
        {
            return this.countFieldSpecified;
        }
        set
        {
            this.countFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int plan
    {
        get
        {
            return this.planField;
        }
        set
        {
            this.planField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool planSpecified
    {
        get
        {
            return this.planFieldSpecified;
        }
        set
        {
            this.planFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_work_zone_element
{

    private string labelField;

    private byte statusField;

    private bool statusFieldSpecified;

    private System.DateTime close_timeField;

    private bool close_timeFieldSpecified;

    private System.DateTime closed_atField;

    private bool closed_atFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime close_time
    {
        get
        {
            return this.close_timeField;
        }
        set
        {
            this.close_timeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool close_timeSpecified
    {
        get
        {
            return this.close_timeFieldSpecified;
        }
        set
        {
            this.close_timeFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime closed_at
    {
        get
        {
            return this.closed_atField;
        }
        set
        {
            this.closed_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool closed_atSpecified
    {
        get
        {
            return this.closed_atFieldSpecified;
        }
        set
        {
            this.closed_atFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_category_element
{

    private string labelField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private ushort stop_booking_atField;

    private bool stop_booking_atFieldSpecified;

    private float weightField;

    private bool weightFieldSpecified;

    private float estimated_quota_percentField;

    private bool estimated_quota_percentFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private System.DateTime close_timeField;

    private bool close_timeFieldSpecified;

    private System.DateTime closed_atField;

    private bool closed_atFieldSpecified;

    private int max_availableField;

    private bool max_availableFieldSpecified;

    private int usedField;

    private bool usedFieldSpecified;

    private float used_quota_percentField;

    private bool used_quota_percentFieldSpecified;

    private int countField;

    private bool countFieldSpecified;

    private int planField;

    private bool planFieldSpecified;

    private get_quota_data_work_zone_element[] work_zoneField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public ushort stop_booking_at
    {
        get
        {
            return this.stop_booking_atField;
        }
        set
        {
            this.stop_booking_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool stop_booking_atSpecified
    {
        get
        {
            return this.stop_booking_atFieldSpecified;
        }
        set
        {
            this.stop_booking_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float weight
    {
        get
        {
            return this.weightField;
        }
        set
        {
            this.weightField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool weightSpecified
    {
        get
        {
            return this.weightFieldSpecified;
        }
        set
        {
            this.weightFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float estimated_quota_percent
    {
        get
        {
            return this.estimated_quota_percentField;
        }
        set
        {
            this.estimated_quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool estimated_quota_percentSpecified
    {
        get
        {
            return this.estimated_quota_percentFieldSpecified;
        }
        set
        {
            this.estimated_quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime close_time
    {
        get
        {
            return this.close_timeField;
        }
        set
        {
            this.close_timeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool close_timeSpecified
    {
        get
        {
            return this.close_timeFieldSpecified;
        }
        set
        {
            this.close_timeFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime closed_at
    {
        get
        {
            return this.closed_atField;
        }
        set
        {
            this.closed_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool closed_atSpecified
    {
        get
        {
            return this.closed_atFieldSpecified;
        }
        set
        {
            this.closed_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int max_available
    {
        get
        {
            return this.max_availableField;
        }
        set
        {
            this.max_availableField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool max_availableSpecified
    {
        get
        {
            return this.max_availableFieldSpecified;
        }
        set
        {
            this.max_availableFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int used
    {
        get
        {
            return this.usedField;
        }
        set
        {
            this.usedField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool usedSpecified
    {
        get
        {
            return this.usedFieldSpecified;
        }
        set
        {
            this.usedFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float used_quota_percent
    {
        get
        {
            return this.used_quota_percentField;
        }
        set
        {
            this.used_quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool used_quota_percentSpecified
    {
        get
        {
            return this.used_quota_percentFieldSpecified;
        }
        set
        {
            this.used_quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int count
    {
        get
        {
            return this.countField;
        }
        set
        {
            this.countField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool countSpecified
    {
        get
        {
            return this.countFieldSpecified;
        }
        set
        {
            this.countFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int plan
    {
        get
        {
            return this.planField;
        }
        set
        {
            this.planField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool planSpecified
    {
        get
        {
            return this.planFieldSpecified;
        }
        set
        {
            this.planFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("work_zone", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_work_zone_element[] work_zone
    {
        get
        {
            return this.work_zoneField;
        }
        set
        {
            this.work_zoneField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_time_slot_element
{

    private string labelField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private ushort stop_booking_atField;

    private bool stop_booking_atFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private System.DateTime close_timeField;

    private bool close_timeFieldSpecified;

    private System.DateTime closed_atField;

    private bool closed_atFieldSpecified;

    private int max_availableField;

    private bool max_availableFieldSpecified;

    private int other_activitiesField;

    private bool other_activitiesFieldSpecified;

    private int usedField;

    private bool usedFieldSpecified;

    private float used_quota_percentField;

    private bool used_quota_percentFieldSpecified;

    private int countField;

    private bool countFieldSpecified;

    private int planField;

    private bool planFieldSpecified;

    private get_quota_data_category_element[] categoryField;

    private get_quota_data_time_slot_total_element totalField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public ushort stop_booking_at
    {
        get
        {
            return this.stop_booking_atField;
        }
        set
        {
            this.stop_booking_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool stop_booking_atSpecified
    {
        get
        {
            return this.stop_booking_atFieldSpecified;
        }
        set
        {
            this.stop_booking_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime close_time
    {
        get
        {
            return this.close_timeField;
        }
        set
        {
            this.close_timeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool close_timeSpecified
    {
        get
        {
            return this.close_timeFieldSpecified;
        }
        set
        {
            this.close_timeFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime closed_at
    {
        get
        {
            return this.closed_atField;
        }
        set
        {
            this.closed_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool closed_atSpecified
    {
        get
        {
            return this.closed_atFieldSpecified;
        }
        set
        {
            this.closed_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int max_available
    {
        get
        {
            return this.max_availableField;
        }
        set
        {
            this.max_availableField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool max_availableSpecified
    {
        get
        {
            return this.max_availableFieldSpecified;
        }
        set
        {
            this.max_availableFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int other_activities
    {
        get
        {
            return this.other_activitiesField;
        }
        set
        {
            this.other_activitiesField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool other_activitiesSpecified
    {
        get
        {
            return this.other_activitiesFieldSpecified;
        }
        set
        {
            this.other_activitiesFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int used
    {
        get
        {
            return this.usedField;
        }
        set
        {
            this.usedField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool usedSpecified
    {
        get
        {
            return this.usedFieldSpecified;
        }
        set
        {
            this.usedFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float used_quota_percent
    {
        get
        {
            return this.used_quota_percentField;
        }
        set
        {
            this.used_quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool used_quota_percentSpecified
    {
        get
        {
            return this.used_quota_percentFieldSpecified;
        }
        set
        {
            this.used_quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int count
    {
        get
        {
            return this.countField;
        }
        set
        {
            this.countField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool countSpecified
    {
        get
        {
            return this.countFieldSpecified;
        }
        set
        {
            this.countFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int plan
    {
        get
        {
            return this.planField;
        }
        set
        {
            this.planField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool planSpecified
    {
        get
        {
            return this.planFieldSpecified;
        }
        set
        {
            this.planFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("category", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_category_element[] category
    {
        get
        {
            return this.categoryField;
        }
        set
        {
            this.categoryField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_time_slot_total_element total
    {
        get
        {
            return this.totalField;
        }
        set
        {
            this.totalField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_day_element
{

    private System.DateTime dateField;

    private float quota_percentField;

    private bool quota_percentFieldSpecified;

    private int min_quotaField;

    private bool min_quotaFieldSpecified;

    private int quotaField;

    private bool quotaFieldSpecified;

    private byte statusField;

    private bool statusFieldSpecified;

    private System.DateTime close_timeField;

    private bool close_timeFieldSpecified;

    private System.DateTime closed_atField;

    private bool closed_atFieldSpecified;

    private int max_availableField;

    private bool max_availableFieldSpecified;

    private int other_activitiesField;

    private bool other_activitiesFieldSpecified;

    private int usedField;

    private bool usedFieldSpecified;

    private float used_quota_percentField;

    private bool used_quota_percentFieldSpecified;

    private int countField;

    private bool countFieldSpecified;

    private int planField;

    private bool planFieldSpecified;

    private get_quota_data_time_slot_element[] time_slotField;

    private get_quota_data_day_total_element totalField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "date")]
    public System.DateTime date
    {
        get
        {
            return this.dateField;
        }
        set
        {
            this.dateField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float quota_percent
    {
        get
        {
            return this.quota_percentField;
        }
        set
        {
            this.quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quota_percentSpecified
    {
        get
        {
            return this.quota_percentFieldSpecified;
        }
        set
        {
            this.quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int min_quota
    {
        get
        {
            return this.min_quotaField;
        }
        set
        {
            this.min_quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool min_quotaSpecified
    {
        get
        {
            return this.min_quotaFieldSpecified;
        }
        set
        {
            this.min_quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool quotaSpecified
    {
        get
        {
            return this.quotaFieldSpecified;
        }
        set
        {
            this.quotaFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public byte status
    {
        get
        {
            return this.statusField;
        }
        set
        {
            this.statusField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool statusSpecified
    {
        get
        {
            return this.statusFieldSpecified;
        }
        set
        {
            this.statusFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime close_time
    {
        get
        {
            return this.close_timeField;
        }
        set
        {
            this.close_timeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool close_timeSpecified
    {
        get
        {
            return this.close_timeFieldSpecified;
        }
        set
        {
            this.close_timeFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public System.DateTime closed_at
    {
        get
        {
            return this.closed_atField;
        }
        set
        {
            this.closed_atField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool closed_atSpecified
    {
        get
        {
            return this.closed_atFieldSpecified;
        }
        set
        {
            this.closed_atFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int max_available
    {
        get
        {
            return this.max_availableField;
        }
        set
        {
            this.max_availableField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool max_availableSpecified
    {
        get
        {
            return this.max_availableFieldSpecified;
        }
        set
        {
            this.max_availableFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int other_activities
    {
        get
        {
            return this.other_activitiesField;
        }
        set
        {
            this.other_activitiesField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool other_activitiesSpecified
    {
        get
        {
            return this.other_activitiesFieldSpecified;
        }
        set
        {
            this.other_activitiesFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int used
    {
        get
        {
            return this.usedField;
        }
        set
        {
            this.usedField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool usedSpecified
    {
        get
        {
            return this.usedFieldSpecified;
        }
        set
        {
            this.usedFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public float used_quota_percent
    {
        get
        {
            return this.used_quota_percentField;
        }
        set
        {
            this.used_quota_percentField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool used_quota_percentSpecified
    {
        get
        {
            return this.used_quota_percentFieldSpecified;
        }
        set
        {
            this.used_quota_percentFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int count
    {
        get
        {
            return this.countField;
        }
        set
        {
            this.countField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool countSpecified
    {
        get
        {
            return this.countFieldSpecified;
        }
        set
        {
            this.countFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public int plan
    {
        get
        {
            return this.planField;
        }
        set
        {
            this.planField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool planSpecified
    {
        get
        {
            return this.planFieldSpecified;
        }
        set
        {
            this.planFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("time_slot", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_time_slot_element[] time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_day_total_element total
    {
        get
        {
            return this.totalField;
        }
        set
        {
            this.totalField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class get_quota_data_bucket_element
{

    private string bucket_idField;

    private string nameField;

    private get_quota_data_day_element[] dayField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string bucket_id
    {
        get
        {
            return this.bucket_idField;
        }
        set
        {
            this.bucket_idField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("day", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public get_quota_data_day_element[] day
    {
        get
        {
            return this.dayField;
        }
        set
        {
            this.dayField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class time_slot_info_element
{

    private string nameField;

    private string labelField;

    private System.DateTime time_fromField;

    private bool time_fromFieldSpecified;

    private System.DateTime time_toField;

    private bool time_toFieldSpecified;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string label
    {
        get
        {
            return this.labelField;
        }
        set
        {
            this.labelField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "time")]
    public System.DateTime time_from
    {
        get
        {
            return this.time_fromField;
        }
        set
        {
            this.time_fromField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool time_fromSpecified
    {
        get
        {
            return this.time_fromFieldSpecified;
        }
        set
        {
            this.time_fromFieldSpecified = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "time")]
    public System.DateTime time_to
    {
        get
        {
            return this.time_toField;
        }
        set
        {
            this.time_toField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool time_toSpecified
    {
        get
        {
            return this.time_toFieldSpecified;
        }
        set
        {
            this.time_toFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class capacity_element
{

    private string locationField;

    private System.DateTime dateField;

    private string time_slotField;

    private string work_skillField;

    private long quotaField;

    private long availableField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string location
    {
        get
        {
            return this.locationField;
        }
        set
        {
            this.locationField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "date")]
    public System.DateTime date
    {
        get
        {
            return this.dateField;
        }
        set
        {
            this.dateField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string time_slot
    {
        get
        {
            return this.time_slotField;
        }
        set
        {
            this.time_slotField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string work_skill
    {
        get
        {
            return this.work_skillField;
        }
        set
        {
            this.work_skillField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public long quota
    {
        get
        {
            return this.quotaField;
        }
        set
        {
            this.quotaField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public long available
    {
        get
        {
            return this.availableField;
        }
        set
        {
            this.availableField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:toa:capacity")]
public partial class activity_field_element
{

    private string nameField;

    private string valueField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string value
    {
        get
        {
            return this.valueField;
        }
        set
        {
            this.valueField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void get_capacityCompletedEventHandler(object sender, get_capacityCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class get_capacityCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{

    private object[] results;

    internal get_capacityCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        base(exception, cancelled, userState)
    {
        this.results = results;
    }

    /// <remarks/>
    public long activity_duration
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((long)(this.results[0]));
        }
    }

    /// <remarks/>
    public bool activity_durationSpecified
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((bool)(this.results[1]));
        }
    }

    /// <remarks/>
    public long activity_travel_time
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((long)(this.results[2]));
        }
    }

    /// <remarks/>
    public bool activity_travel_timeSpecified
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((bool)(this.results[3]));
        }
    }

    /// <remarks/>
    public capacity_element[] capacity
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((capacity_element[])(this.results[4]));
        }
    }

    /// <remarks/>
    public time_slot_info_element[] time_slot_info
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((time_slot_info_element[])(this.results[5]));
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void get_quota_dataCompletedEventHandler(object sender, get_quota_dataCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class get_quota_dataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{

    private object[] results;

    internal get_quota_dataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        base(exception, cancelled, userState)
    {
        this.results = results;
    }

    /// <remarks/>
    public get_quota_data_bucket_element[] Result
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((get_quota_data_bucket_element[])(this.results[0]));
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void set_quotaCompletedEventHandler(object sender, set_quotaCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class set_quotaCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{

    private object[] results;

    internal set_quotaCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        base(exception, cancelled, userState)
    {
        this.results = results;
    }

    /// <remarks/>
    public set_quota_result_element[] Result
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((set_quota_result_element[])(this.results[0]));
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void set_quota_close_timeCompletedEventHandler(object sender, set_quota_close_timeCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class set_quota_close_timeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{

    private object[] results;

    internal set_quota_close_timeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        base(exception, cancelled, userState)
    {
        this.results = results;
    }

    /// <remarks/>
    public set_quota_close_time_result[] Result
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((set_quota_close_time_result[])(this.results[0]));
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void get_quota_close_timeCompletedEventHandler(object sender, get_quota_close_timeCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class get_quota_close_timeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{

    private object[] results;

    internal get_quota_close_timeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        base(exception, cancelled, userState)
    {
        this.results = results;
    }

    /// <remarks/>
    public quota_close_time_schedule[] Result
    {
        get
        {
            this.RaiseExceptionIfNecessary();
            return ((quota_close_time_schedule[])(this.results[0]));
        }
    }
}
